package com.svse.dao;

import java.util.List;

import com.svse.vo.Caseinfo;

public interface CaseinfoDAO {

	// property constants
	public static final String USERNAME = "username";
	public static final String CASETITLE = "casetitle";
	public static final String CASECONTENT = "casecontent";
	public static final String CASEDATE = "casedate";

	public abstract void save(Caseinfo transientInstance);

	public abstract void delete(Caseinfo persistentInstance);

	public abstract Caseinfo findById(java.lang.Integer id);

	public abstract List findByExample(Caseinfo instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByUsername(Object username);

	public abstract List findByCasetitle(Object casetitle);

	public abstract List findByCasecontent(Object casecontent);

	public abstract List findByCasedate(Object casedate);

	public abstract List findAll();

	public abstract Caseinfo merge(Caseinfo detachedInstance);

	public abstract void attachDirty(Caseinfo instance);

	public abstract void attachClean(Caseinfo instance);
	
	public List findByCasetitleToLike(String casetitle);
	
	public abstract List findAllByPage(int beginIndex,int maxLength);

}